function t = check_bounds(photon_xyz)
if(abs(photon_xyz(1,1))<=100 & abs(photon_xyz(1,2))<=100 & abs(photon_xyz(1,3))<=100)
    t=1;
else
    %display'photon energy absorbed at boundary');
    t=0;
end